package users;

public abstract class User {

	public static final int GOVERNMENT = 0;
	public static final int DOCTOR = 1;
	public static final int NURSE = 2;
	public static final int PATIENT = 3;
	
	protected String name;
	protected String division;
	protected int type;
	
	public abstract String getDivision();
	public abstract int getType();
	public abstract String getName();

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		User other = (User) obj;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}
}
